package br.ufmg.dees.insane.ui.rich.prep.view;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 * The class with the main method.
 * @author Ferreira, Reginaldo & Pitangueira, Roque
 * @since october 2006
 */

public class InsanePrep {
	
    public static void main(String[]args){

    // start the Desktop
    DesktopPrep frame = new DesktopPrep();
    frame.validate();
              
    // Centers the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height)
        frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
        frameSize.width = screenSize.width;
   frame.setLocation((screenSize.width  - frameSize.width)  / 2,
		             (screenSize.height - frameSize.height) / 2);
   frame.setVisible(true);
   
   } // end of the main
    
// *****************************************************************************   
}  // end of this class